package com.lechuang.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lechuang.common.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户收货地址
 * @TableName user_consignee
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="user_consignee")
@Data
@Accessors(chain = true)
public class UserConsignee extends BaseEntity implements Serializable {
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收货人姓名
     */
    private String consigneeName;

    /**
     * 收货人电话
     */
    private String consigneePhone;

    /**
     * 收货人详细地址
     */
    private String consigneeAddressDetail;

    /**
     * 省id
     */
    private Long provinceId;

    /**
     * 省名称
     */
    private String provinceName;

    /**
     * 市id
     */
    private Long cityId;

    /**
     * 市名称
     */
    private String cityName;
    /**
     * 区id
     */
    private Long areaId;

    /**
     * 区名称
     */
    private String areaName;
    /**
     * 是否默认地址：1 是 2否
     */
    private Integer defaultFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}